package com.lizhongbao.cloud.biz.domain.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 测试DTO
 * @Author lizhongbao
 * @Date 2019/12/23 16:43
 **/
public class TestDto implements Serializable {

    @NotBlank(message = "姓名不能为空")
    @Size(max = 10, min = 2, message = "姓名长度要在2-10之间")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "TestDto{" +
                "name='" + name + '\'' +
                '}';
    }
}
